import request from '@/utils/request'

// 查询疫苗接种信息列表
export function listRuralVaccination(query) {
  return request({
    url: '/rural/ruralVaccination/list',
    method: 'get',
    params: query
  })
}

// 查询疫苗接种信息详细
export function getRuralVaccination(id) {
  return request({
    url: '/rural/ruralVaccination/' + id,
    method: 'get'
  })
}

// 新增疫苗接种信息
export function addRuralVaccination(data) {
  return request({
    url: '/rural/ruralVaccination',
    method: 'post',
    data: data
  })
}

// 修改疫苗接种信息
export function updateRuralVaccination(data) {
  return request({
    url: '/rural/ruralVaccination',
    method: 'put',
    data: data
  })
}

// 删除疫苗接种信息
export function delRuralVaccination(id) {
  return request({
    url: '/rural/ruralVaccination/' + id,
    method: 'delete'
  })
}
